package com.gdzn.netty.api.thread;

import lombok.AllArgsConstructor;

import java.util.Date;

/**
 * @description: IM消息线程
 * @author: cxz kenny
 * @created: 2021-10-15 16:18:51
 * @version: V1.0
 */
@AllArgsConstructor
public class ImTaskExecuteThread implements Runnable{
    /**
     * 启动运行线程方法
     */
    @Override
    public void run() {
        //发送消息
        send("hi,开始发送");
    }
    private void send(Object object){
        System.out.println("开始发送消息：时间：{}, {}"+ new Date()+ object);
    }
    private void push(){

    }

    private void finish(){

    }
}
